<?
include("spacedel.php");
include("han2zen.php");
include("zen2han.php");
include("strreplace.php");
include('crypt.php');

function strconvert($str,$indicator){

//空データだったら
if($str==""){
  return "";
}
if(preg_match("/d/",$indicator)>0){
  $str = spacedel($str);
}

if(preg_match("/z/",$indicator)>0){
  $str = zen2han($str);
}
if(preg_match("/r/",$indicator)>0){
  $str = strreplace($str);
}
if(preg_match("/h/",$indicator)>0){
  $str = han2zen($str);
}

return $str;
}

?>
